<?php if($countMusics){ ?>
	<div class="user_block">
		<div class="u_cat_head"><a href="<?php echo Yii::app()->createUrl('audio/index', array('profile'=>$_GET['id']));?>"><i>Мои </i> Аудиозаписи <span><?php echo CHtml::encode($countMusics); ?></span></a></div>
		<div class="u_audio_player profileMusic">
			<?php foreach ($musics as $key => $music){ ?>
				<div class="u_audio__item">
					<div class="play_btn"></div>
					<div class="u_audio_track">
						<?php if($music->artist){ ?>
							<a href="#" data-src="<?php echo '/upload/audio/'.$music->music_info->file;?>" class="u_audio__autor"><?php echo $music->artist;?></a>
							<span> &mdash; </span>
						<?php } ?>
						<a href="#" data-src="<?php echo '/upload/audio/'.$music->music_info->file;?>" class="u_audio__name"><?php echo $music->name;?></a>
					</div>
					<div class="player_block_links">
						<?php if(Yii::app()->user->id==$music->user_id) {?>
							<a href="<?php echo Yii::app()->createUrl('audio/deleteAudio', array('id'=>$music->id,'profile'=>Yii::app()->request->getParam('id'))); ?>" class="u_buzz_link l2 removeLink">
								<div class="user_action_item_tooltip c hidden"><div class="cc">Удалить аудиозапись</div></div>
							</a>
							<a href="<?php echo Yii::app()->createUrl('audio/update', array('id'=>$music->id,'profile'=>Yii::app()->request->getParam('id'))); ?>" class="u_buzz_link l3 ajaxLink">
								<div class="user_action_item_tooltip c hidden"><div class="cc">Редактировать аудиозапись</div></div>
							</a>
						<?php } else { ?>
							<a href="<?php echo Yii::app()->createUrl('audio/copy', array('id'=>$music->id)); ?>" class="u_buzz_link copymusic">
								<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить аудиозапись</div></div>
							</a>
						<?php } ?>
					</div>
				</div>
			<?php } ?>
		</div>
	</div>
<?php } ?>